<me:UIVAART x:Class="WPFExcelReport.TPFSWTXT"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:VAK="clr-namespace:WPFExcelReport;assembly=TVAKOLL" 
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM" 
                    xmlns:DR="clr-namespace:WPFExcelReport;assembly=TDRAUFTR" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"
                    xmlns:TK="clr-namespace:WPFExcelReport;assembly=TTXTKON"  
                    xmlns:VKK="clr-namespace:WPFExcelReport;assembly=TVKKOPF"  
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"  
                    FontSize="14"
                   x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIVAART.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter  x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:TextTrimmingConverter x:Key ="trim"/>
    </me:UIVAART.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel    Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
            <WrapPanel  Margin="0,10,0,0"> 
                <Button  Click="VAFCommand" Height="20" Margin="5,0,0,0" Width="Auto" Content="{Binding Source={Localization:Translate Word=花型号评价}}" />   
                <WrapPanel Visibility="Collapsed">
                    <TXT:TXTTP Grid.Row="0" IsAuto="True"
                               Name="cT"
                              TART="V00"
                              SIND="{Binding TXTISIND,ElementName=cVA09}"  
                              IsEdit="{Binding IsEdit,ElementName=cVA09}"
                              IsSaved="{Binding IsEdit,ElementName=cVA09}" 
                              VerticalAlignment="Top"/> 
                </WrapPanel>
            </WrapPanel>
            <me:TVAWSPATTERN ORDERNUM="{Binding KEY,ElementName=cVA09}"/>
        </StackPanel>
        <Expander  Grid.Row="1" Grid.Column="0" 
                   IsExpanded="True" ExpandDirection="Right"  Name="cZone">
            <Expander.Header>
                <StackPanel Visibility="{Binding IsExpanded,ElementName=cZone,Converter={StaticResource nbv}}">
                    <TextBlock Text="{Binding KEY,ElementName=cVA09}" Width="Auto"/>
                </StackPanel>
            </Expander.Header>
            <VF:TJTBKVA09  Margin="10,0,0,0"  Grid.Row="1"   x:Name="cVA09" 
                             CART="{Binding CART,ElementName=TV}"
                             IsShowTxt="{Binding IsShowTxt,ElementName=TV}"
                             Rows="30"
                             IsPage="True"
                             
                       />
        </Expander>
        <ex:AniScrollViewer Grid.Row="1"   Grid.Column="1" > 
            <StackPanel>
                <TK:TP01RS INFO="{Binding RS,ElementName=TV}"  PIND="{Binding PIND,ElementName=cT}" />
                <TK:TP02JS  INFO="{Binding JS,ElementName=TV}"  PIND="{Binding PIND,ElementName=cT}"   />
                <TK:TP03ZZ INFO="{Binding ZZ,ElementName=TV}"   PIND="{Binding PIND,ElementName=cT}"   />
                <TK:TP04HZ INFO="{Binding HZ,ElementName=TV}"   PIND="{Binding PIND,ElementName=cT}" />
                <TK:TP06CP  INFO="{Binding CP,ElementName=TV}"  PIND="{Binding PIND,ElementName=cT}"   />
                <TK:TP08SJ  INFO="{Binding SJ,ElementName=TV}"  PIND="{Binding PIND,ElementName=cT}"    />
            </StackPanel> 
        </ex:AniScrollViewer>  
    </Grid>
</me:UIVAART>
